﻿@using Huirui.Cavan.Domain.MainBoundedContext.SalesModule
@model Huirui.Cavan.Presentation.ViewModel.SalesModule.ISalesOrderViewModel
<div id="selectStockWindowFromSalesOrder" class="easyui-window" data-options="closed:true,minimizable:false,maximizable:false,collapsible:false,title:'@Html.Raw("按订单采购 ")',modal:true" style="width: 900px; height: 600px; padding: 2px;">
    <div>
        @using (Html.BeginForm(ActionConst.STOCKSFROMSALESORDER, ControllerConst.STOCK, FormMethod.Post, new { id = "searchStockFromSalesOrder" }))
        {
            <label>
                日期:</label>
            @Html.TextBoxFor(m => m.SearchParam.StartDate)@Html.Raw("至")@Html.TextBoxFor(m => m.SearchParam.EndDate) 
            <label>
                客户:</label>
            @Html.TextBoxFor(m => m.SearchParam.CustomerCode)
            <label>
                订单编号:</label>
            @Html.TextBoxFor(m => m.SearchParam.ID, new { id = "salesOrderCode" })
            <label>
                入库状态:</label>
            <input type="checkbox" name="stockOutStatus" value="@SalesIdentifier.StockOutStatus.UnOut.GetHashCode()" /><label>未出库</label>
            <input type="checkbox" name="stockOutStatus" value="@SalesIdentifier.StockOutStatus.PartOut.GetHashCode()" /><label>部分出库</label>
            <input type="checkbox" name="stockOutStatus" value="@SalesIdentifier.StockOutStatus.AllOut.GetHashCode()" /><label>已出库</label>
            <input type="checkbox" name="stockOutStatus" value="@SalesIdentifier.StockOutStatus.Closed.GetHashCode()" /><label>关闭</label>
            @Html.HiddenFor(m => m.SearchParam.StoskOutStatues, new { id = "stockOutStatues" })
            <input type="submit" value="查询订单" id="queryStocksFromSalesOrder" />
            <input type="button" value="确定存货" id="doSelectStocksFromSalesOrder" />
        }
        <table id="stocksFromSalesOrder">
        </table>
    </div>
</div>
